import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtGui import QIcon

class MyMainWin(QMainWindow):

    def __init__(self):
        super(MyMainWin, self).__init__()

        # 标题
        self.setWindowTitle("MainWin")

        # 大小
        self.resize(400, 400)

        # 提示信息, 5秒后消失
        self.status = self.statusBar()
        self.status.showMessage('提示信息', 5000)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    # 图标
    app.setWindowIcon(QIcon('./imgs/xunlei.png'))
    main = MyMainWin()
    main.show()
    sys.exit(app.exec_())

